package com.ivc.info.dto.base;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cs.framework.common.annotation.NotNull;
import com.cs.framework.common.bo.BoBase;

/**
 * 商品供应信息
 * 
 * @author hedongzhou
 * 
 */
@Entity
@Table(name = "supply_product")
public class SupplyProductDto extends BoBase {

	private static final long serialVersionUID = 948286911320263974L;

	/**
	 * 供应信息编号
	 */
	@Id
	@GeneratedValue(generator = "supplyProductGenerator")
	@GenericGenerator(name = "supplyProductGenerator", strategy = "increment")
	@Column(name = "supply_no")
	private Long supplyNo;

	/**
	 * 供应商编号
	 */
	@Column(name = "supplier_no")
	@NotNull("供应商编号")
	private String supplierNo;

	/**
	 * 商品编号
	 */
	@Column(name = "product_no")
	@NotNull("商品编号")
	private String productNo;

	public Long getSupplyNo() {
		return supplyNo;
	}

	public void setSupplyNo(Long supplyNo) {
		this.supplyNo = supplyNo;
	}

	public String getSupplierNo() {
		return supplierNo;
	}

	public void setSupplierNo(String supplierNo) {
		this.supplierNo = supplierNo;
	}

	public String getProductNo() {
		return productNo;
	}

	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}

}
